package ldk.learn.jni;

public class AccessFieldsJni {
    private String name;
    private int age;

    static {
        System.loadLibrary("accessfield");
    }

    private static native void call(AccessFieldsJni jni);

    @Override
    public String toString() {
        return "AccessFieldsJni{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    public static void main(String[] args){
        AccessFieldsJni jni = new AccessFieldsJni();
        System.out.println("start call function call: " + jni);
        call(jni);
        System.out.println("end call function call: " + jni);
    }
}
